{extend name="common@public/base" /}

{block name="body"}
<link rel="stylesheet" href="/static/css/index/index.css">

<div class="allWrap">
    <div class="listWrap">
        <!--搜索&发布-->
        <div class="top">
            <form action="http://cn.bing.com/search" class="ipWrap">
                <i class="iconfont icon-sousuo"></i>
                <input class="input" autocomplete="off" placeholder="搜索内容，回车跳转" type="text" name="q">
            </form>
            <div class="sdWrap">
                <b>OR</b>
                <a href="{:url('add',['bid'=>$bid])}" class="sdBtn flexWrap"><span>发布问题</span></a>
            </div>
        </div>
        <!--帖子列表-->
        <div class="list">
            <div class="layui-tab layui-tab-card">
                <ul class="layui-tab-title">
                    <li class="layui-this">全部</li>
                    <li>未结帖</li>
                    <li>已采纳</li>
                    <li>精华帖</li>
                    <li>我的帖子</li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <ul class="fly-list">

                            {volist name="list" id="vl"}
                            <li class="listLi flexDiv">
                                <div class="flexLeft">
                                    <a href="{:url('detail',['id'=>$vl['id']])}" class="fly-list-avatar"><img
                                            src="http://tp4.sinaimg.cn/1345566427/180/5730976522/0" alt=""></a>
                                    <div class="rightDiv">
                                        <p class="fly-tip">
                                            <a class="textMore" href="{:url('detail',['id'=>$vl['id']])}">{$vl.title}</a>
                                            <span class="fly-tip-stick">置顶</span>
                                            <span class="fly-tip-jing">精帖</span>
                                        </p>

                                        <p class="info">
                                            <span><i class="iconfont icon-01" title="用户"></i><a
                                                    href="user/home.html">{:get_user_info($vl['uid'],'nickname')}</a></span>
                                            <span><i class="iconfont icon-label" title="标签"></i>{$typeList[$vl['type']]}</span>
                                            <span><i class="iconfont icon-huida" title="回答"></i> 317</span>
                                            <span><i class="iconfont icon-renqi" title="人气"></i> 6830</span>
                                        </p>
                                    </div>
                                </div>
                                <div class="flexRight">{$vl.update_time|friendly_date}</div>
                            </li>
                            {/volist}


                        </ul>
                        <div style="text-align: center">
                            <div class="laypage-main">
                                <a href="jie/index.html" class="laypage-next">更多求解</a>
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab-item">2</div>
                    <div class="layui-tab-item">3</div>
                    <div class="layui-tab-item">4</div>
                    <div class="layui-tab-item">5</div>
                    <div class="layui-tab-item">6</div>
                </div>
            </div>
            <script>
                //注意：选项卡 依赖 element 模块，否则无法进行功能性操作
                layui.use('element', function () {
                    var element = layui.element();
                });
            </script>
        </div>
    </div>

    <div class="edges">
        {include file="post/_right"}
    </div>
</div>
{/block}